package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

/**
 * @author: louk
 * @Description:产线信息对应Pojo
 * @date: 2019/11/14 16:00
 *
 */

public class Productline extends BasePojo {

    /**
     * 产线id
     */
    private Integer productlineId;
    /**
     * 产线编码
     */
    private String productlineCode;
    /**
     *  产线名称
     */
    private String productlineName;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 车间id
     */
    private Integer workshopId;
    /**
     * 产能
     */
    private Integer capacityNum;
    /**
     * 备注
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;
    /**
     * @author: louk
     * @Description:以上是数据库定义字段,以下是衍生字段
     * @date: 2019/11/14 16:02
     *
     */
    /**
     * 车间名称
     */
    private String workshopName;

    /**
     * 负责人名称
     */
    private String userName;
    /**
     * 数据状态名称
     */
    private String dataStateName;

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDataStateName() {
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public Integer getProductlineId() {
        return productlineId;
    }

    public void setProductlineId(Integer productlineId) {
        this.productlineId = productlineId;
    }

    public String getProductlineCode() {
        return productlineCode;
    }

    public void setProductlineCode(String productlineCode) {
        this.productlineCode = productlineCode == null ? null : productlineCode.trim().replace(" ","");
    }

    public String getProductlineName() {
        return productlineName;
    }

    public void setProductlineName(String productlineName) {
        this.productlineName = productlineName == null ? null : productlineName.trim().replace(" ","");
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Integer workshopId) {
        this.workshopId = workshopId;
    }

    public Integer getCapacityNum() {
        return capacityNum;
    }

    public void setCapacityNum(Integer capacityNum) {
        this.capacityNum = capacityNum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Productline() {
    }

    public Productline(String productlineCode, String productlineName, Integer capacityNum, String workshopName, String remark) {
        this.productlineCode = productlineCode;
        this.productlineName = productlineName;
        this.capacityNum = capacityNum;
        this.workshopName = workshopName;
        this.remark=remark;
    }
}